import App from "./App.vue";
import { createApp } from "vue";
import Layui from "@layui/layui-vue";
import "@layui/layui-vue/lib/index.css";

import pinia from "@/store";
import router from "@/router";
import directives from "@/directives";
import moment from "moment";

import svgIcon from "@/components/SvgIcon/index.vue";
import "virtual:svg-icons-register";

moment.locale("zh-cn");

const app = createApp(App);
app.use(pinia);
app.use(router);
app.use(directives);
app.config.globalProperties.$moment = moment;
app.component("svg-icon", svgIcon);

app.use(Layui).mount("#app");
